﻿<UserControl x:Class="SBPweb.RIA.Client.Controls.Content.ToolBarItem"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <Storyboard x:Name="storyMouseEnter">
            <DoubleAnimation Duration="0:0:0.1" From="0.4" To="1.0" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)" />
        </Storyboard>
        <Storyboard x:Name="storyMouseEnterDisabled">
            <DoubleAnimation Duration="0:0:0.1" From="0.2" To="1.0" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)" />
        </Storyboard>
        <Storyboard x:Name="storyMouseLeave">
            <DoubleAnimation Duration="0:0:0.5" From="1.0" To="0.4" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)" />
        </Storyboard>
        <Storyboard x:Name="storyMouseLeaveDisabled">
            <DoubleAnimation Duration="0:0:0.5" From="1.0" To="0.2" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)" />
        </Storyboard>
        <Storyboard x:Name="storyEnableChanged">
            <DoubleAnimation Duration="0:0:0.1" From="0.2" To="0.4" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)" />
        </Storyboard>
        <Storyboard x:Name="storyEnableChangedDisabled">
            <DoubleAnimation Duration="0:0:0.3" From="0.4" To="0.2" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)" />
        </Storyboard>
    </UserControl.Resources>
    <Grid Name="grid" Opacity="0.4" Cursor="Hand" MouseEnter="Element_MouseEnter" MouseLeave="Element_MouseLeave">
        <Image Name="image" Stretch="None" MinWidth="32" VerticalAlignment="Top" HorizontalAlignment="Center" />
        <TextBlock Name="caption" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="8" />
    </Grid>
</UserControl>
